<template>
	<view class="homebox">
		<!-- 		<view class="czname">
			测站信息
		</view> -->
		<view class="czinput">
			<view class="lebox">
				名称：
			</view>
			<view class="leboxinput">
				<view class="">
					{{cezhanitem.name}}
				</view>
			</view>
		</view>
		<view class="czinput">
			<view class="lebox">
				编码：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.nub}}
				</view>
			</view>
		</view>
		<view class="hetop">
			<view class="titleclass">
				定位点
			</view>

		</view>
		<view class="czinput">
			<view class="lebox">
				经度：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.lot}}
				</view>
			</view>
<!-- 			<view class="" style="margin-left: 30rpx;">
				度
			</view> -->
		</view>
		<view class="czinput">
			<view class="lebox">
				纬度：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.lat}}
				</view>
			</view>
	<!-- 		<view class="" style="margin-left: 30rpx;">
				度
			</view> -->
		</view>
		<view class="hetop">
			<view class="titleclass">
				测段参数
			</view>
		</view>
		<view class="czinput">
			<view class="lebox">
				断面形状：
			</view>
			<view class="">
				<uni-data-checkbox v-model="cezhanitem.xingzhuang" :localdata="range"></uni-data-checkbox>
			</view>
		</view>
		<view class="czinput">
			<view class="lebox">
				渠底宽度：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.qudikuandu}}
				</view>
			</view>
		</view>
		<view class="czinput">
			<view class="lebox">
				设计水深：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.shejishuishen}}
				</view>
			</view>
		</view>
		<view class="czinput">
			<view class="lebox">
				设计流量：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.shejiliuliang}}
				</view>
			</view>
		</view>
		<view class="czinput">
			<view class="lebox">
				上限水深：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.shangxianshuishen}}
				</view>
			</view>
		</view>
		<view class="czinput">
			<view class="lebox">
				下限水深：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.xiaxianshuishen}}
				</view>
			</view>
		</view>
		<view class="czinput">
			<view class="lebox">
				渠底纵坡：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.qudizongpo}}
				</view>
			</view>
		</view>
		<view class="czinput">
			<view class="lebox">
				渠坡糙率：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.qupocaolv}}
				</view>
			</view>
		</view>
		<view class="hetop">
			<view class="titleclass">
				边坡角度
			</view>
		</view>
		<view class="czinput">
			<view class="lebox">
				左坡角：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.lSA
}}
				</view>
			</view>
		</view>
		<view class="czinput">
			<view class="lebox">
				右坡角：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.rSA
}}
				</view>
			</view>
		</view>
		<view class="hetop">
			<view class="titleclass">
				选择测线条数
			</view>
		</view>
		<view class="czinput">
			<view class="lebox">
				测线条数：
			</view>
			<view class="">
				{{cezhanitem.measurementModeList[1].value.length}}
<!-- 				<view class="" style="width: 300rpx">
					<uni-data-select :clear="false" v-model="cezhanitem.cexiantiaoshu" :localdata="range1"
						placeholder="请选择测线条数" @change="change1"></uni-data-select>
				</view> -->
			</view>
		</view>
<!-- 		<view class="czinput">
			<view class="lebox">
				测线布置：
			</view>
			<view class="">
				<uni-data-checkbox v-model="cezhanitem.cexianbuzhi" :localdata="range2"></uni-data-checkbox>
			</view>
		</view> -->
		<view class="czinput">
			<view class="lebox">
				默认测法：
			</view>
			<view class="">
				<uni-data-checkbox v-model="cezhanitem.morencefa" :localdata="range3"></uni-data-checkbox>
			</view>
		</view>
		<view class="hetop">
			<view class="titleclass">
				边坡系数
			</view>
		</view>
		<view class="czinput">
			<view class="lebox">
				左线系数：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.kL}}
				</view>
			</view>
		</view>
		<view class="czinput">
			<view class="lebox">
				右线系数：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.kR}}
				</view>
			</view>
		</view>
<!-- 		<view class="czinput">
			<view class="lebox" style="width: 260rpx">
				自计水深修正：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.zijishuishenxiuzheng}}
				</view>
			</view>
		</view> -->
		<view class="hetop">
			<view class="titleclass">
				单条测线
			</view>
		</view>
		<view class="" style="height: 30rpx;">

		</view>
		<view class="qicebox">
			<view class="qicedian">
				测线编号
			</view>
			<view class="qicedian">
				水平坐标
			</view>
			<view class="qicedian">
				行走距离
			</view>
			<view class="qicedian">
				架空高度
			</view>
		</view>
		<view class="qicebox" v-for="(item,index) in cezhanitem.measurementModeList[1].value" :key="index">
			<view class="qicinput">
				{{item.id}}
			</view>
			<view class="qicinput">
				<!-- {{item.zuobiao}} -->
				<u--input disabled v-model="item.cR" placeholder="0" border="none"
					type="number"></u--input>
			</view>
			<view class="qicinput">
				<!-- {{item.xishu}} -->
				<u--input disabled v-model="item.zJ" placeholder="0" border="none" type="number"></u--input>
			</view>
			<view class="qicinput">
				<!-- {{item.xishu}} -->
				<u--input disabled v-model="item.bC" placeholder="0" border="none" type="number"></u--input>
			</view>
		</view>
<!-- 		<view class="czinput">
			<view class="lebox">
				流量系数：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.qk}}
				</view>
			</view>
		</view>
		<view class="czinput">
			<view class="lebox">
				水量系数：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.shuiliangxishu}}
				</view>
			</view>
		</view> -->
		<view class="czinput">
			<view class="lebox" style="width: 300rpx;">
				流速仪距铅鱼底：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.measurementModeList[0].value}}
				</view>
			</view>
		</view>
<!-- 		<view class="hetop">
			<view class="titleclass">
				边坡测线流速系数
			</view>
		</view> -->
<!-- 		<view class="czinput">
			<view class="lebox">
				左坡测线系数：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.vmL}}
				</view>
			</view>
		</view> -->
<!-- 		<view class="czinput">
			<view class="lebox">
				右坡测线系数：
			</view>
			<view class="">
				<view class="">
					{{cezhanitem.vmR}}
				</view>
			</view>
		</view> -->
		<view class="" style="height: 100rpx;">

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				cezhanitem: {
				},
				cezhanlist: [],
				range: [{
					text: '梯形',
					value: 0,
					disable:true
				}, {
					text: '矩形',
					value: 1,
					disable:true
				}, ],
				range1: [{
						text: '1条测线',
						value: 1
					},
					{
						text: '2条测线',
						value: 2
					},
					{
						text: '3条测线',
						value: 3
					},
					{
						text: '4条测线',
						value: 4
					},
					{
						text: '5条测线',
						value: 5
					},
					{
						text: '6条测线',
						value: 6
					},
					{
						text: '7条测线',
						value: 7
					},
					{
						text: '8条测线',
						value: 8
					},
					{
						text: '9条测线',
						value: 9
					},
				],
				range2: [{
						text: '均匀',
						value: 1,
						disable:true
					},
					{
						text: '不均匀',
						value: 2,
						disable:true
					}
				],
				range3: [{
						text: '一点法',
						value: 1,
						disable:true
					},
					{
						text: '三点法',
						value: 3,
						disable:true
					}
				],
				cezhanId: null
			}
		},
		onLoad(option) {
			this.cezhanId = option.id
			this.cezhanlist = this.vuex_saveCezhandata
		},
		onShow() {
			let cezhanArr = this.cezhanlist
			let cezhanObj = {}
			for(let i in cezhanArr){
				if(cezhanArr[i].id == this.cezhanId){
					cezhanObj = cezhanArr[i]
				}
			}
			this.cezhanitem = cezhanObj
			console.log('this.cezhanitem',this.cezhanitem);
		},
		methods: {

		}
	}
</script>
<style scoped lang="scss">
	.titleclass {
		color: #144892;
	}
	.hetop {
		text-align: center;
		line-height: 60rpx;
		background-color: #e8f2fd;
		border-radius: 30rpx;
		font-size: 30rpx;
		font-weight: bold;
	}

	.homebox {
		width: 690rpx;
		padding: 0 30rpx;
		.czname {
			display: flex;
			justify-content: center;
			line-height: 100rpx;
			font-size: 40rpx;
		}

		.czinput {
			font-size: 35rpx;
			padding: 20rpx 20rpx;
			display: flex;
			align-items: center;
			// background-color: #ffffff;
			border-bottom: 1rpx solid #e3e3e3;
			border-radius: 0rpx;
			margin-bottom: 20rpx;
			
			color: #000000;

			.lebox {
				
				color: #144892;
				width: 250rpx;
				text-align: justify;
				text-align-last: justify;
			}
		}

		.qicebox {
			display: flex;
			justify-content: center;
			align-items: center;

			.qicedian {
				width: 200rpx;
				height: 100rpx;
				line-height: 100rpx;
				text-align: center;
				color: #fffcf8;
				border: #144892 solid 1rpx;
				background-color: #144892;
				border-radius: 20rpx 20rpx 0 0;
			}

			.qicinput {
				width: 160rpx;
				height: 100rpx;
				padding: 0 20rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				line-height: 100rpx;
				color: #7e7d7a;
				border: #dddcda solid 1rpx;
				background-color: #ffffff;
			}
		}
	}
</style>
<style>
	page {
		/* background-color: #eaeaea; */
	}
</style>